//
//  ClickMoreButtonVC.m
//  UILbrary
//
//  Created by mac on 16/7/19.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "ClickMoreButtonVC.h"
#import "Constant.h"
#import "DXpopButton.h"
@implementation ClickMoreButtonVC
- (void)viewDidLoad{
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(20, 400, kAPP_With - 40, 40)];
    button.backgroundColor = [UIColor orangeColor];
    [button setTitle:@"高级" forState:UIControlStateNormal];
    [button setTintColor:[UIColor whiteColor]];
    [self.view addSubview:button];
    
    [button addTarget:self action:@selector(buttonClick) forControlEvents:UIControlEventTouchUpInside];
}

- (void)buttonClick{
    NSArray *imageArr = @[@"about",@"bar",@"car",@"hart",@"home",@"me"];
    DXpopButton *pop = [[DXpopButton alloc] initWithFrame:self.view.bounds TopimageArr:imageArr bottomImageArr:imageArr];
    
    [pop popBottomButtons];
    
    pop.bottomButtonsClick = ^(NSInteger cout,id obj){
        NSLog(@"---%ld---%@",cout,obj);
        
    };
    
    pop.topButtonsClick = ^(NSInteger cout, id obj){
        NSLog(@"---%ld---%@",cout,obj);
    };
}
@end
